<template>
  <div class="content">
    <div
      class="text"
      :style="{
        margin: '50px auto',
        fontSize: '30px',
        color: 'rgb(51, 51, 51)',
        textAlign: 'center',
        fontWeight: 'bold',
      }"
    >
      欢迎使用 {{ this.$project.projectName }}
    </div>
  </div>
</template>
<script>
//0
import router from '@/router/router-static'
import * as echarts from 'echarts'
export default {
  data() {
    return {}
  },
  mounted() {
    this.init()
  },
  methods: {
    init() {
      if (this.$storage.get('Token')) {
        this.$http({
          url: `${this.$storage.get('sessionTable')}/session`,
          method: 'get',
        }).then(({ data }) => {
          if (data && data.code != 0) {
            router.push({ name: 'login' })
          }
        })
      } else {
        router.push({ name: 'login' })
      }
    },
  },
}
</script>
<style lang="scss" scoped>
.content {
  min-height: '100vh';
  padding: '0px';
  background: 'url(http://codegen.caihongy.cn/20230414/c294e7815ede4f498ef5df52f1fb482c.png) no-repeat center top / 100% 100%';
  // background: '../assets/img/xiashailovezheli.jpg';
}

.cardView {
  display: flex;
  flex-wrap: wrap;
  width: 100%;

  .cards {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    justify-content: center;
    .card {
      width: calc(25% - 20px);
      margin: 0 10px;
      /deep/.el-card__body {
        padding: 0;
      }
    }
  }
}
</style>
